<!DOCTYPE html>
<title>Shared Worker: UseCounter</title>
<script>
self.connectToWorker = () => {
  const worker = new SharedWorker('shared-worker-usecounter.js');
};
self.connectToWorkerWithScriptType = type => {
  const worker = new SharedWorker('empty.js',
                                  { name: type + '-worker', type });
};
self.connectToWorkerWithoutScriptType = () => {
  const worker = new SharedWorker('empty.js', 'notype-worker');
};
window.opener.postMessage('LOADED', '*');
</script>
